//
//  TSaleInfoModel.m
//  CarSalesMS_GCX
//
//  Created by Tony on 2016/11/6.
//  Copyright © 2016年 Tony. All rights reserved.
//

#import "TSaleInfoModel.h"

@implementation TSaleInfoModel


- (instancetype)initWithCoder:(NSCoder *)coder
{
    self = [super init];
    if (self) {
        self.sId = [coder decodeIntForKey:@"sId"];
        self.sOrderNo = [coder decodeObjectForKey:@"sOrderNo"];
        self.sCoNo = [coder decodeObjectForKey:@"sCoNo"];
        self.sName = [coder decodeObjectForKey:@"sName"];
        self.sCategory = [coder decodeObjectForKey:@"sCategory"];
        self.sUnit = [coder decodeObjectForKey:@"sUnit"];
        self.sPrice = [coder decodeObjectForKey:@"sPrice"];
        self.sCount = [coder decodeObjectForKey:@"sCount"];
        self.sUnitMoney = [coder decodeObjectForKey:@"sUnitMoney"];
        self.sTotalMoney = [coder decodeFloatForKey:@"sTotalMoney"];
        self.sWarehouseNo = [coder decodeObjectForKey:@"sWarehouseNo"];
        self.sWarehouseName = [coder decodeObjectForKey:@"sWarehouseName"];
        self.sSalesmanNo = [coder decodeObjectForKey:@"sSalesmanNo"];
        self.sSalesman = [coder decodeObjectForKey:@"sSalesman"];
        self.sBusinessmanNo = [coder decodeObjectForKey:@"sBusinessmanNo"];
        self.sBusinessman = [coder decodeObjectForKey:@"sBusinessman"];
        self.sSaleType = [coder decodeIntForKey:@"sSaleType"];
        self.sSettlementType = [coder decodeIntForKey:@"sSettlementType"];
        self.sPromotionType = [coder decodeIntForKey:@"sPromotionType"];
        self.sCreateTime = [coder decodeObjectForKey:@"sCreateTime"];
        self.sState = [coder decodeIntForKey:@"sState"];
        self.sRemark = [coder decodeObjectForKey:@"sRemark"];
    }
    return self;
}



- (void)encodeWithCoder:(NSCoder *)coder
{
    [coder encodeInt:self.sId forKey:@"sId"];
    [coder encodeObject:self.sOrderNo forKey:@"sOrderNo"];
    [coder encodeObject:self.sCoNo forKey:@"sCoNo"];
    [coder encodeObject:self.sName forKey:@"sName"];
    [coder encodeObject:self.sCategory forKey:@"sCategory"];
    [coder encodeObject:self.sUnit forKey:@"sUnit"];
    [coder encodeObject:self.sPrice forKey:@"sPrice"];
    [coder encodeObject:self.sCount forKey:@"sCount"];
    [coder encodeObject:self.sUnitMoney forKey:@"sUnitMoney"];
    [coder encodeFloat:self.sTotalMoney forKey:@"sTotalMoney"];
    [coder encodeObject:self.sWarehouseNo forKey:@"sWarehouseNo"];
    [coder encodeObject:self.sWarehouseName forKey:@"sWarehouseName"];
    [coder encodeObject:self.sSalesmanNo forKey:@"sSalesmanNo"];
    [coder encodeObject:self.sSalesman forKey:@"sSalesman"];
    [coder encodeObject:self.sBusinessmanNo forKey:@"sBusinessmanNo"];
    [coder encodeObject:self.sBusinessman forKey:@"sBusinessman"];
    [coder encodeInt:self.sSaleType forKey:@"sSaleType"];
    [coder encodeInt:self.sSettlementType forKey:@"sSettlementType"];
    [coder encodeInt:self.sPromotionType forKey:@"sPromotionType"];
    [coder encodeObject:self.sCreateTime forKey:@"sCreateTime"];
    [coder encodeInt:self.sState forKey:@"sState"];
    [coder encodeObject:self.sRemark forKey:@"sRemark"];
    
}



@end
